{template 'yellowpage_header.html','yellowpage'}

<div class="container">
	<div class="aside">
    	
        {if $m_user}
        <div class="mod">
            <div class="head">热点导航</div>
            <div class="body">
                <ul>
                {loop $m_user $ms}
                  <li><a href="{$ms[url]}">{$ms[catname]}</a></li>
                {/loop}
                </ul>
            </div>
        </div>
        {/if}
        
        <div class="mod">
            <div class="head">最新消息</div>
            <div class="body">
                <ul>
                {get sql="SELECT * FROM `table_yellowpage_news` WHERE `userid`='$userid' AND status=99 ORDER BY id DESC" rows="10"}
                <li><a href="{url($r[url])}" title="{$r[title]}">{str_cut($r[title],28,'')}</a></li>
                {/get}
                </ul>
            </div>
        </div>
        
        <div class="mod">
            <div class="head">站内搜索</div>
            <div class="body">
                <form class="box" action="{$M['url']}web/query.php">
                  <input type="text" name="q" size="16"/><input name="search" type="submit" id="search" value="搜索"/><br/>
                  <input type="radio" name="type" checked="checked" value="product"/>商品<input type="radio" name="type" value="buy"/>商机<input value="news" type="radio" name="type"/>新闻<input type="hidden" value="search" name="action" /><input name="userid" value="{$userid}" type="hidden" />
                </form>
            </div>
        </div>
            
    </div>
    <div class="main">
    	
        <div class="mod">
            <div class="head">{$system_name[$category]}</div>
            <div class="body">
                <ul class="txt_list">
                <li>电话：{magic_image($telephone)}</li>
                <li>传真：{magic_image($fax)}</li>
                <li>邮箱：{magic_image($email)}</li>
                <li>地址：{$address}</li>
                <li>邮编：{$zip}</li>
                <hr/>
                </ul>
                
                {if $map!=''}
				<script language="javascript" src="http://api.51ditu.com/js/maps.js"></script>
                <script language="javascript" src="http://api.51ditu.com/js/ezmarker.js"></script>
                <div id="maps" style="position:relative; width:90%; height:350px; border:black solid 1px;"> 
                   <script language="javascript">
                    var maps = new LTMaps( "maps" );
                    var c = new LTSmallMapControl();
                    maps.addControl(c);
                    var point = new LTPoint({$x},{$y}); 
                    maps.centerAndZoom( point, {$z} );
                    var text=new LTMapText(point,[0,-18]);
                    text.setLabel( "{$company_user_infos[companyname]}" );
                    setTimeout("maps.addOverLay( text );",3000);
                    var icon=new LTIcon("{$M[url]}images/centerPoi.gif",[24,24],[12,12]);
                    var marker=new LTMarker(new LTPoint({$x},{$y}),icon);
                    maps.addOverLay(marker);
                </script>
                </div>
                {/if}

            </div>
        </div>
        
        
        
    </div>
    <p class="clear"></p>
</div> 
{template 'yellowpage_footer.html','yellowpage'} 